import request from '@/utils/request'
//图片源
export function sysPicSourceQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysPicSource/query',
    params: data,
  })
}

export function sysPicSourceQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysPicSource/query/' + id,
  })
}

export function sysPicSourceAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/sysPicSource/add',
    data,
  })
}

export function sysPicSourceDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/sysPicSource/delete/' + id,
  })
}

export function sysPicSourceUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/sysPicSource/update',
    data,
  })
}

export function sysPicSourceOpenApiQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysPicSource/openApi/query',
    params: data,
  })
}
